package com.sihan.framework.etm.entity.baseData;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.framework.mybatis.annotation.AutoGenerator;
import com.framework.mybatis.enums.IdType;

import lombok.Data;

@Data
@Table(name = "jdx_etm_device_running")
public class DeviceStateModel implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@AutoGenerator(idType = IdType.UUID32)
	private String id;
	//设备id
	private String deviceId;
	
	private BigDecimal temperature;
	
	private BigDecimal humidity;
	//'0:正常，1：异常'
	private Integer humidityStat;
	//'0:正常，1：异常'
	private Integer temperatureStat;
	//设备状态（-1：未关门，0：未上锁，1：已上锁）
	private Integer deviceState;
	
	private Date createTime;
}
